<?php

namespace App\Module\Wap\Validator;

use App\System\Base\Validator\BaseValidator;

class AddBankAccountValidator extends BaseValidator
{

    protected $rules = [
        'password'    => 'required',
        'accountName'    => 'required',
        'accountBankId'    => 'required',
        'accountCode'    => 'required|between:10,20',
        'accountBranchName'    => 'required',
    ];

    protected $messages = [
        'password.required'    => '未输入登录密码',
        'accountName.required'    => '未输入持卡人',
        'accountBankId.required'    => '未输入银行名称',
        'accountCode.required'    => '未输入银行帐号',
        'accountCode.between'    => '银行帐号位数不正确',
        'accountBranchName.required'    => '未输入支行名称',
    ];

    protected $attributes = [

    ];
}